/**********************************************************************
* Filename: Empresa.java
* Created: 2013/05/30
* @author Fernando Brito e Abreu
**********************************************************************/
package org.quasar.airNova.businessLayer;

import org.quasar.airNova.persistenceLayer.Database;

import java.util.Set;

public class Empresa extends Cliente
{
	
	/***********************************************************
	* @return all instances of class Empresa
	***********************************************************/
	public static Set<Empresa> allInstances()
	{
		return Database.allInstances(Empresa.class);
	}
	
	private String website;
	
	/**********************************************************************
	* Default constructor
	**********************************************************************/
	public Empresa()
	{
		super();
	}
	
	/**********************************************************************
	* Parameterized constructor
	* @param codigo_cliente the codigo_cliente to initialize (inherited)
	* @param morada the morada to initialize (inherited)
	* @param n_contribuinte the n_contribuinte to initialize (inherited)
	* @param nome the nome to initialize (inherited)
	* @param website the website to initialize
	**********************************************************************/
	public Empresa(int codigo_cliente, String morada, int n_contribuinte, String nome, String website)
	{
		super(codigo_cliente, morada, n_contribuinte, nome);
		this.website = website;
	}
	
	/**********************************************************************
	* Standard attribute getter
	* @return the website of the empresa
	**********************************************************************/
	public String website()
	{
		return website;
	}
	
	/**********************************************************************
	* Standard attribute setter
	* @param website the website to set
	**********************************************************************/
	public void setWebsite(String website)
	{
		this.website = website;
	}
	
	/**********************************************************************
	* Object serializer
	**********************************************************************/
	public String toString()
	{
		return "Empresa [" + super.toString() + " website=" + website + "]";
	}
	
}
